const Router = require('koa-router')
const app = new Router({ prefix: '/login' })
const { isnull } = require('../middleware/index')
const { wxlogin, sendphoneyzm, pdphoneyzm, adduser, phonelogin, ishasphone, updatepassword } = require('../controller/login')
app.post('/wx', wxlogin)
app.get('/sendphoneyzm', isnull, sendphoneyzm)
app.post('/pdphoneyzm', pdphoneyzm)
app.post('/adduser', adduser)
app.get('/phonelogin', phonelogin)
app.get('/ishasphone', ishasphone)
app.post('/updatepassword', updatepassword)
module.exports = app  